package com.heatingcharge.service.unit;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heatingcharge.dto.ResHouseDTO;
import com.heatingcharge.entity.unit.ResHouse;
import com.heatingcharge.param.ResHouseParam;
import com.heatingcharge.param.SearchParam;
import com.heatingcharge.vo.TreeVo;

import java.util.List;

/**
 * <p>
 * 房屋信息 服务类
 * </p>
 *
 * @author devin.jiang
 * @since 2019-07-12
 */
public interface IResHouseService extends IService<ResHouse> {

    IPage<ResHouseDTO> getHouses(Page page, ResHouseDTO resHouseDTO);

    List<ResHouseDTO> getHouses(SearchParam searchParam);

    List<TreeVo> getHouses(ResHouseDTO resHouseDTO);

    boolean save(ResHouseParam resHouseParam);

    boolean update(ResHouseParam resHouseParam);
    boolean net(ResHouseParam resHouseParam);
    boolean unet(ResHouseParam resHouseParam);
    boolean register(ResHouseParam resHouseParam);
    boolean destory(ResHouseParam resHouseParam);
}
